from src import app
from src.common.ScheduleTaskPool import ScheduleTaskPool

if __name__ == '__main__':
    ScheduleTaskPool().init_schedule_pool()

    app.run(
        host = app.config.get("host", "0.0.0.0"),
        port = app.config.get("port", 5000),
        debug = app.config.get("debug", True),
        threaded = app.config.get("threaded", True)
    )
